Component({
  mixins: [],
  data: {
    dataSource:[]
  },
  props: {},
  didMount() {
    this.loadData();
  },
  didUpdate() {},
  didUnmount() {},
  methods: {
    async loadData(){
      const{cloud}=getApp();
      const res=await cloud.application.httpRequest({
        path:'/index.php/index/qn/box',
        method:'GET',
        params:{
          shop_id:getApp().globalData.shop_id
        }
      });
      this.setData({
        dataSource:res
      })
      
    }
  },
});
